Skip to content

Conversation

@tiyash-basu-frequenz
Copy link
Contributor

This commit renames the metric variants in metrics.proto to follow a more consistent naming scheme. The new naming convention uses a core-concept to modifier format, which improves clarity and consistency across the metric definitions.

closes #360

@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this Jun 13, 2025
Copilot AI review requested due to automatic review settings June 13, 2025 08:48
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner June 13, 2025 08:48
@github-actions github-actions bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files labels Jun 13, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR renames metric variants in the metrics.proto file to follow a consistent core‑concept to modifier naming scheme for improved clarity.

  • Renamed AC power metric enums from the old naming convention to the new one in metrics.proto
  • Updated the RELEASE_NOTES.md to reflect the naming changes and improve formatting consistency

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
proto/frequenz/api/common/v1/metrics/metrics.proto Renamed AC power and energy metric enum values to follow the new naming scheme
RELEASE_NOTES.md Updated release notes bullet point formatting and descriptions to reflect the renaming
Comments suppressed due to low confidence (2)

proto/frequenz/api/common/v1/metrics/metrics.proto:104

  • The new enum names follow a consistent scheme, but please verify that all enum names and related comments accurately reflect the core-concept to modifier naming convention.
METRIC_AC_POWER_APPARENT = 22;

RELEASE_NOTES.md:15

  • [nitpick] Ensure the bullet list formatting and punctuation are consistent with the rest of the document to maintain clarity in the release notes.
- `microgrid.sensors.SensorCategory`, since it was not useful and potentially confusing.

Copy link
Contributor

@llucax llucax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renames look good to me but there are some issues with the release notes.

This commit renames the metric variants in `metrics.proto` to follow a
more consistent naming scheme. The new naming convention uses a
core-concept to modifier format, which improves clarity and consistency
across the metric definitions.

Signed-off-by: Tiyash Basu <[email protected]>
@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue Jun 13, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 22b7df1 Jun 13, 2025
6 checks passed
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the 360_rename_metrics branch June 13, 2025 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent Naming Hierarchy in Power and Energy Enum Variants

2 participants